.class Lcom/example/inshopbuy/ConsumeInShop$6;
.super Ljava/lang/Thread;
.source "ConsumeInShop.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/inshopbuy/ConsumeInShop;->aouctpay(Ljava/lang/String;Ljava/lang/String;)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/inshopbuy/ConsumeInShop;

.field private final synthetic val$orderid:Ljava/lang/String;

.field private final synthetic val$waitpay_cost:Ljava/lang/String;


# direct methods
.method constructor <init>(Lcom/example/inshopbuy/ConsumeInShop;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/inshopbuy/ConsumeInShop$6;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    iput-object p2, p0, Lcom/example/inshopbuy/ConsumeInShop$6;->val$orderid:Ljava/lang/String;

    iput-object p3, p0, Lcom/example/inshopbuy/ConsumeInShop$6;->val$waitpay_cost:Ljava/lang/String;

    .line 693
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 13

    .prologue
    const/16 v12, 0x2c

    .line 695
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 697
    new-instance v3, Landroid/os/Message;

    invoke-direct {v3}, Landroid/os/Message;-><init>()V

    .line 699
    .local v3, "msg":Landroid/os/Message;
    iget-object v9, p0, Lcom/example/inshopbuy/ConsumeInShop$6;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    .line 700
    const-string v10, "userInfo"

    const/4 v11, 0x0

    .line 699
    invoke-virtual {v9, v10, v11}, Lcom/example/inshopbuy/ConsumeInShop;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v4

    .line 701
    .local v4, "preferences":Landroid/content/SharedPreferences;
    const-string v9, "uid"

    const-string v10, ""

    invoke-interface {v4, v9, v10}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 702
    .local v7, "uid":Ljava/lang/String;
    const-string v9, "pass"

    const-string v10, ""

    invoke-interface {v4, v9, v10}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 704
    .local v5, "pwd":Ljava/lang/String;
    new-instance v9, Ljava/lang/StringBuilder;

    iget-object v10, p0, Lcom/example/inshopbuy/ConsumeInShop$6;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    # getter for: Lcom/example/inshopbuy/ConsumeInShop;->m:Lmyapp/MyApp;
    invoke-static {v10}, Lcom/example/inshopbuy/ConsumeInShop;->access$28(Lcom/example/inshopbuy/ConsumeInShop;)Lmyapp/MyApp;

    move-result-object v10

    invoke-virtual {v10}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v10

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 705
    const-string v10, "/index.php?ctrl=app&action=appacoutpay&orderid="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 706
    iget-object v10, p0, Lcom/example/inshopbuy/ConsumeInShop$6;->val$orderid:Ljava/lang/String;

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&type=yhorder&cost="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 707
    iget-object v10, p0, Lcom/example/inshopbuy/ConsumeInShop$6;->val$waitpay_cost:Ljava/lang/String;

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&uid="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&pwd="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 708
    const-string v10, "&datatype=json"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 704
    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    .line 709
    .local v8, "url":Ljava/lang/String;
    const-string v9, "PayBalanceActivity"

    new-instance v10, Ljava/lang/StringBuilder;

    const-string v11, "acoutpay"

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v10, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 710
    iget-object v9, p0, Lcom/example/inshopbuy/ConsumeInShop$6;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    # getter for: Lcom/example/inshopbuy/ConsumeInShop;->m:Lmyapp/MyApp;
    invoke-static {v9}, Lcom/example/inshopbuy/ConsumeInShop;->access$28(Lcom/example/inshopbuy/ConsumeInShop;)Lmyapp/MyApp;

    move-result-object v9

    invoke-static {v8, v9}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v6

    .line 713
    .local v6, "str":Ljava/lang/String;
    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v6}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 714
    .local v1, "jsonObject":Lorg/json/JSONObject;
    const-string v9, "error"

    invoke-virtual {v1, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    const-string v10, "true"

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_0

    .line 716
    new-instance v2, Landroid/os/Message;

    invoke-direct {v2}, Landroid/os/Message;-><init>()V

    .line 717
    .local v2, "message":Landroid/os/Message;
    const/16 v9, 0x1bc

    iput v9, v2, Landroid/os/Message;->arg1:I

    .line 718
    const-string v9, "msg"

    invoke-virtual {v1, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    iput-object v9, v2, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 719
    iget-object v9, p0, Lcom/example/inshopbuy/ConsumeInShop$6;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    # getter for: Lcom/example/inshopbuy/ConsumeInShop;->h:Landroid/os/Handler;
    invoke-static {v9}, Lcom/example/inshopbuy/ConsumeInShop;->access$32(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/os/Handler;

    move-result-object v9

    invoke-virtual {v9, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 749
    .end local v1    # "jsonObject":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 723
    .end local v2    # "message":Landroid/os/Message;
    .restart local v1    # "jsonObject":Lorg/json/JSONObject;
    :cond_0
    const-string v9, "msg"

    invoke-virtual {v1, v9}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v9

    if-eqz v9, :cond_1

    .line 725
    new-instance v2, Landroid/os/Message;

    invoke-direct {v2}, Landroid/os/Message;-><init>()V

    .line 726
    .restart local v2    # "message":Landroid/os/Message;
    const/16 v9, 0x2c

    iput v9, v2, Landroid/os/Message;->arg1:I

    .line 727
    iget-object v9, p0, Lcom/example/inshopbuy/ConsumeInShop$6;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    # getter for: Lcom/example/inshopbuy/ConsumeInShop;->h:Landroid/os/Handler;
    invoke-static {v9}, Lcom/example/inshopbuy/ConsumeInShop;->access$32(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/os/Handler;

    move-result-object v9

    invoke-virtual {v9, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 740
    .end local v1    # "jsonObject":Lorg/json/JSONObject;
    .end local v2    # "message":Landroid/os/Message;
    :catch_0
    move-exception v0

    .line 741
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    .line 743
    new-instance v2, Landroid/os/Message;

    invoke-direct {v2}, Landroid/os/Message;-><init>()V

    .line 744
    .restart local v2    # "message":Landroid/os/Message;
    iput v12, v2, Landroid/os/Message;->arg1:I

    .line 745
    iget-object v9, p0, Lcom/example/inshopbuy/ConsumeInShop$6;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    # getter for: Lcom/example/inshopbuy/ConsumeInShop;->h:Landroid/os/Handler;
    invoke-static {v9}, Lcom/example/inshopbuy/ConsumeInShop;->access$32(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/os/Handler;

    move-result-object v9

    invoke-virtual {v9, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 733
    .end local v0    # "e":Lorg/json/JSONException;
    .end local v2    # "message":Landroid/os/Message;
    .restart local v1    # "jsonObject":Lorg/json/JSONObject;
    :cond_1
    :try_start_1
    new-instance v2, Landroid/os/Message;

    invoke-direct {v2}, Landroid/os/Message;-><init>()V

    .line 734
    .restart local v2    # "message":Landroid/os/Message;
    const/4 v9, 0x4

    iput v9, v2, Landroid/os/Message;->arg1:I

    .line 736
    iget-object v9, p0, Lcom/example/inshopbuy/ConsumeInShop$6;->this$0:Lcom/example/inshopbuy/ConsumeInShop;

    # getter for: Lcom/example/inshopbuy/ConsumeInShop;->h:Landroid/os/Handler;
    invoke-static {v9}, Lcom/example/inshopbuy/ConsumeInShop;->access$32(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/os/Handler;

    move-result-object v9

    invoke-virtual {v9, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 752
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 753
    monitor-exit p0

    return-void

    .line 752
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
